﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using CC_day_15___Chores.Models;

namespace CC_day_15___Chores.Controllers
{
    public class KitchenController : Controller
    {
        // Create Kitchen Chores here
        Kitchen WashDishes = new Kitchen()
        {
            ChoreName = "Wash Dishes"
        };
        Kitchen WipeStove = new Kitchen()
        {
            ChoreName = "Wipe Stove"
        };
        Kitchen MopFloor = new Kitchen()
        {
            ChoreName = "Mop Floor"
        };
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult Kitchen()
        {
            ViewBag.Message = "List of All Kitchen Chores";
            
            // make a list of Kitchen chores
            List<Kitchen> KitchenChores = new List<Kitchen>() { WashDishes, WipeStove, MopFloor, };
            return View(KitchenChores);
        }
    }
}